import { request } from "./request"

//查询线路规划推荐列表
export const routeRecomtion_List = (data = {}) => {
    return request('get', '/route/travelRoute/getRecommend', data, true);
}

//线路规划列表点赞操作接口
export const routeLikes = (data = {}) => {
    return request('post', '/route/travelRoute/likeTravel', data, true);
}

//线路规划列表详情页
export const routeRecomtion_Info = (data = {}) => {
    return request('get', '/route/travelRoute/getRouteDetails', data, true);
}

//查询智能规划列表 
export const intelPlaning_List = (data = {}) => {
    return request('get', '/route/travelCollect/getCollectList', data, true);
}
//查询智能规划记录
export const intelPlaning_Record = (data = {}) => {
    return request('get', '/route/travelCollect/getNavigationData', data, false);
}

//查询路线乡村详情数据
export const ruralData_Info = (data = {}) => {
    return request('get', '/route/routeVillage/getVillageList', data, true);
}

//生成路线接口
export const generateRoute = (data = {}) => {
    return request('post', '/route/village/startTravel', data, false);
}

//开始导航获取路线详情
export const navigationRoute_Info = (data = {}) => {
    return request('post', '/route/village/getTravelDetail', data, true);
}
//统计生成专属路线人数 
export const peopleGenerate_Stat = (data = {}) => {
    return request('get', '/route/village/getTravelMsg', data, false);
}
//开始旅行导航接口 
export const startTraveling = (data = {}) => {
    return request('post', '/route/village/useTravel', data, true);
}

//添加对路线详情的评价
export const commentRoute_Add = (data = {}) => {
    return request('post', '/route/travelRoute/travelComment', data, true);
}

//查询路线的评论列表
export const commentRoute_List = (data = {}) => {
    return request('get', '/route/travelRoute/getCommentList', data, true);
}

//删除村落
export const village_Delete = (data) => {
    return request('post', '/route/village/removeTravelVillage', data, true);
}

//删除智能规划列表
export const znRoute_Delete = (data) => {
    return request('post', '/route/travelCollect/removeCollect', data, true);
}

// 查询所有专题信息
export const specialSubject_List = (data) => {
    return request('get', '/route/travelRoute/getWeChatTopic', data, true);
}

// 小程序获取专题路线金华路线
export const obtainSpecial_List = (data) => {
    return request('post', '/route/travelRoute/listSearchRoute', data, true);
}

// 小程序获取我的路线信息
export const obtainMy_List = (data) => {
    return request('post', '/route/travelRoute/listSearchRoute', data, true);
}

// 获取推荐和热门路线数据
export const recommendMy_List = (data) => {
    return request('post', '/route/travelRoute/getRecommendedHot', data, true);
}

// 获取乡村标签下的路线
export const getRuralRoutes_List = (data) => {
    return request('get', '/route/travelRoute/getRecommend', data, true);
}